// -*- C++ -*-

#include "tool.h"

namespace Tool
{
	char debug_;
}

char* Tool::strnew(const char *s)
{
	if ( s == 0 )
		return 0;
	char* t = 0;
	t = new char[strlen(s)+1];
	if ( t == 0 )
		return 0;
	else
		return strcpy( t, s );
}

void Tool::strdelete(char *s)
{
	delete [] s;
}

char Tool::debug (void)
{
	return Tool::debug_;
}

void Tool::debug (char c)
{
	Tool::debug_ = c;
}